{include file="headerPopup.tpl.html"}

<div id="" class="widthContent10 radiusDiv shadowDiv backWhite textAlignLeft tableDiv" style="height:auto; margin-top:20px;">
	<div class="tableDiv" >
		<div class="rowTableDiv" > 
			<div class="cellTableDiv widthContent10 divFloat darkBlueEffect leftTopRadiusDiv rightTopRadiusDiv"  style="height: 25px;text-align:center; "> 
				<label style="color:#FFFFFF; font-size:13px;">Configura la campagna</label>
			</div>
		</div>		
	</div>	

	<div class="tableDiv mediumGreyDiv2" style="padding-top:0px;padding-bottom:0px;">
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent11 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Attiva</p>
			</div>
			<div class="cellTableDiv2 widthContent12 divFloat" > 
				<p class="pCellDiv2">
					<input type="text" name="attiva" value="{$attiva}" class="inputGeneral1 radiusInput widthMax20"/>
				</p>
			</div>
		</div>
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent11 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Provider Telefonico</p>
			</div>
			<div class="cellTableDiv2 widthContent12 divFloat" > 
				<p class="pCellDiv2">
					<input type="text" name="prefisso" value="{$prefisso}" class="inputGeneral1 radiusInput widthMax20"/>
				</p>
			</div>
		</div>
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent11 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Minuti di rientro dell'appuntamento</p>
			</div>
			<div class="cellTableDiv2 widthContent12 divFloat" > 
				<p class="pCellDiv2">
					<input type="text" name="minutiRiassegnazioneApp" value="{$minutiRiassegnazioneApp}" class="inputGeneral1 radiusInput widthMax20"/>
				</p>
			</div>
		</div>
	</div>	
	<div class="tableDiv" >
		<div class="rowTableDiv" >                        
			<div class="cellTableDiv widthContent10 divFloat darkBlueEffect leftBottomRadiusDiv rightBottomRadiusDiv"  style="height: 0px;"> 
				&nbsp;
			</div>
		</div>			
	</div>
</div>
{section name=idx loop=$idOpzioneLS}
<div id="" class="widthContent10 radiusDiv shadowDiv backWhite textAlignLeft tableDiv" style="height:auto; margin-top:20px;">
	<div class="tableDiv" >
		<div class="rowTableDiv" > 
			<div class="cellTableDiv widthContent10 divFloat darkBlueEffect leftTopRadiusDiv rightTopRadiusDiv"  style="height: 25px;text-align:center; "> 
				<label style="color:#FFFFFF; font-size:13px;">{$esitoNomeLS[idx]} ({$esitoLS[idx]})</label>
			</div>
		</div>		
	</div>
	<div class="tableDiv mediumGreyDiv2" style="padding-top:0px;padding-bottom:0px;">
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent11 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Numero chiamate</p>
			</div>
			<div class="cellTableDiv2 widthContent12 divFloat" > 
				<p class="pCellDiv2">
					<input type="text" name="numChiamateLS[]" value="{$numChiamateLS[idx]}" class="inputGeneral1 radiusInput widthMax20"/>
					<input type="hidden" name="idOpzioneLS[]" value="{$idOpzioneLS[idx]}" class="inputGeneral1 radiusInput widthMax20"/>
				</p>
			</div>
		</div>
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent11 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Minuti per il ricircolo</p>
			</div>
			<div class="cellTableDiv2 widthContent12 divFloat" > 
				<p class="pCellDiv2">
					<input type="text" name="minutiChiamateLS[]" value="{$minutiChiamateLS[idx]}" class="inputGeneral1 radiusInput widthMax30"/>
				</p>
			</div>
		</div>
	</div>	
	<div class="tableDiv" >
		<div class="rowTableDiv" >                        
			<div class="cellTableDiv widthContent10 divFloat darkBlueEffect leftBottomRadiusDiv rightBottomRadiusDiv"  style="height: 0px;"> 
				&nbsp;
			</div>
		</div>			
	</div>
</div>
{/section}


<div class="widthContent10 textAlignRight tableDiv" style="margin-top:20px;" >
	<input type="button" id="idBtnRicircolo" value="Ricircolo" class="buttonNew3 effectImage radiusButton shadowButton " style="margin-right:10px;" onclick="_submitRicircolo()"/>
	<input type="button" id="idBtnSave" value="Salva" class="buttonNew3 effectImage radiusButton shadowButton "  onclick="_submitSave()"/>
</div>	


</br>


{include file="funcMisc.js"}
{include file="funcSelect.js"}
{include file="funcPopup.js"}


<input type="hidden" name="idCampagna" id="idCampagna" value="{$idCampagna}" />
<input type="hidden" name="save" id="save" value="{$save}" />
<input type="hidden" name="type" id="type" value="{$type}" />

<script type="text/javascript" src="lib_js/calendar.js"></script>
<script type="text/javascript">
{$refreshOpener}

{literal}
	
	function _submitSave()
	{	   
	    document.main.save.value = 'S';
	    
	    document.main.submit();
	}

	
	function _submitRicircolo()
	{	   
		if (confirm("Sei sicuro di voler ricircolare i nominativi?"))
		{
			document.main.save.value = 'R';
			document.main.submit();
		}
		
	}


{/literal}


</script>
 
{include file="usrObjPopupMsg.tpl.html"}
{include file="footerPopup.tpl.html"} 
 

